var GY = {
  getURLParameter: function (param, url) {
    var params = (url.substr(url.indexOf("?") + 1)).split("&");
    if (params != null) {
      for (var i = 0; i < params.length; i++) {
        var strs = params[i].split("=");
        if (strs[0] == param) {
          return strs[1];
        }
      }
    }
    return "";
  },
  goback: function () {
    var to = getReturnPage();
    if (to.data.page) {
      window.location.href = to.data.page.replace(/陶/g, '&');
    } else {
      window.location.href = getDomain().home;
    }
  },

  addUrl: function (to, form) {
    if (form) {
      addReturnPage(form.replace(/&/g, '陶'));
    }
    window.location.href = to
  }
}